<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>EHS供求信息页面，发布EHS供求信息</title>
    <link href="__TMPL__/style/common.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="__TMPL__/style/supply-style.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/ehs.js"></script>
    <script charset="utf-8" src="__TMPL__/js/editor/kindeditor.js"></script>
    <script charset="utf-8" src="__TMPL__/js/_comment.js"></script>
  </head>
  <body>
    <layout name="Public:header" cache="0" />
    <div class="container">
      <div class="path-sub-nav">您所在位置：<a href="/index.html">首页</a> &gt; <a href="__URL__/index">供求</a> &gt; {$content.title}</div>
      <div class="supply-article">
        <div class="supply-article-left">
          <div class="supply-article-cont">
            <h3>{$content.title}</h3>
            <div class="article-from"><span>发布地区：{$content.region}</span><span>属于类别：{$types[$content[type]][name]}<if condition="$content.sub gt 0">/{$types[$content[type]][sub][$content[sub]][name]}</if></span>
              <span>{$content.pub_time}</span><span style="width:60px">阅读：{$content.read_num}</span><if condition="$allowEdit eq 1"><span class="edit"><a href="__URL__/publish/id/{$id}">编辑</a></span></if>
              <div class="clear"></div>
            </div>
            <hr />
            <div style="width:960px;margin:5px auto;overflow:auto; line-height:2em;">{$content.content}</td></tr></table></div>
            <dl class="user-info">
              <dt>发布人联系方式</dt>
              <dd>联 系 人：{$content.linkman}</dd>
              <dd>联系电话：{$content.phone}</dd>
              <dd>有 效 期：{$content.pub_date}至{$content.stop_date}</dd>
            </dl>
			
			<if condition="$attach neq null">
			  <dl class="user-info">
			   <dt>下载附件</dt>
              <volist name='attach' id='item'>
				  <dd><a href="__ROOT__/{$item.file_path}" target="_blank">{$item.file_name}</a></dd>
				</volist>
              </dl>
			</if>			
			
          </div>
          <div class="supply-comm" style="clear:both">
            <h3>评论</h3>
            <volist name="comment_list" id="vo">
              <div class="comm-visitant">
                <div class="visitant"><span>{$vo.create_time}</span>{$vo.username}</div>
                <div class="comm-cont">{$vo.content}</div>
              </div>
            </volist>
            </td><div class="comm-box">
              <div class="comm-cont">
                <textarea name="content" cols="" id="textContent" style="width:940px;height:200px; font-size:14px; padding: 0;"></textarea>
                <br /><input type="button" value="提交" onclick="save(1,'{$content.id}',$('#textContent').val(),'__URL__/content/id/{$content.id}')"/>
              </div>
            </div>
          </div>
        </div>
		
        <!--<div class="supply-article-right" >
          <div class="ehs-desired supply-box">
            <div class="mode-supply-head">
              <h2>招聘信息</h2>
              <div class="clear"></div>
            </div>
            <div class="mode-supply-cont">
              <ul>
                <volist name="type_5" id="vo">
                  <li><a href="__URL__/content/id/{$vo.id}" target="_blank">{:mb_substr($vo[title],0,16,'utf-8')}</a></li>
                </volist>
              </ul>
            </div>
          </div>
          <div class="supply-info supply-box">
            <div class="mode-supply-head" style="padding:0;">
              <ul>
                <li id="supply1" class="supply-current" onmouseover="setTabnowclass('supply','supply-current',1,2)">活动信息</li>
                <li id="supply2" onmouseover="setTabnowclass('supply','supply-current',2,2)">培训信息</li>
              </ul>
              <div class="clear"></div>
            </div>
            <div class="mode-supply-cont" id="supply_con1">
              <ul>
                <volist name="type_1" id="vo">
                  <li><a href="__URL__/content/id/{$vo.id}" target="_blank">{:mb_substr($vo[title],0,16,'utf-8')}</a></li>
                </volist>
              </ul>
            </div>
            <div class="mode-supply-cont" id="supply_con2" style="display:none;">
              <ul>
                <volist name="type_3" id="vo">
                  <li><a href="__URL__/content/id/{$vo.id}" target="_blank">{:mb_substr($vo[title],0,16,'utf-8')}</a></li>
                </volist>
              </ul>
            </div>
          </div>
          <div class="position-vacant supply-box">
            <div class="mode-supply-head">
              <h2>EHS需求</h2>
              <div class="clear"></div>
            </div>
            <div class="mode-supply-cont">
              <ul>
                <volist name="type_7" id="vo">
                  <li><a href="__URL__/content/id/{$vo.id}" target="_blank">{:mb_substr($vo[title],0,16,'utf-8')}</a></li>
                </volist>
              </ul>
            </div>
          </div>
        </div>-->
        <div class="clear"></div>
      </div>
    </div>
    <layout name="Public:footer" cache="0" />
    <script>
      var url = "__URL__";
      KE.show({
        id : 'textContent',
		resizeMode : 1,
        items:['emoticons']
      });
    </script>
  </body>
</html>
